Check if triplet exits from lists with given sum